package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.models.FileMetas;

import android.text.TextUtils;

import net.wxxr.http.interfaces.IJsonParser;

public class GetFileMate implements IJsonParser, Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private FileMetas avatar;
	
	public FileMetas getAvatar() {
		return avatar;
	}

	public void setAvatar(FileMetas avatar) {
		this.avatar = avatar;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, GetFileMate.class);
		}
		return null;
	}

}
